# $Id: PKGBUILD 68291 2012-03-21 10:26:35Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=sopcast
pkgver=3.4.0
pkgrel=3
pkgdesc="The Streaming Direct Broadcast System based on P2P"
arch=('i686' 'x86_64')
url="http://www.sopcast.org"
license=('custom')

if [[ $CARCH == "x86_64" ]]; then
  depends=('lib32-libstdc++5')
else
  depends=('libstdc++5')
fi

install=sopcast.install
source=("http://download.sopcast.com/download/sp-auth.tgz"
        'license')
md5sums=('db931c9237fc93756dab7284800fa43f'
         'cd4c2f7795918cdb02550a6e0ee939a4')

package()  {
  install -D -m755 sp-auth/sp-sc-auth "${pkgdir}/usr/bin/sp-sc-auth"
  ln -s sp-sc-auth "${pkgdir}/usr/bin/sopcast"
  ln -s sp-sc-auth "${pkgdir}/usr/bin/sp-sc"
  install -D license "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
